rustc_target: Add some more target spec sanity checking#100537
rustc_target: Add some more target spec sanity checking#100537bors merged 4 commits intorust-lang:masterfrom
Conversation
|
r? @oli-obk (rust-highfive has picked a reviewer for you, use r? to override) |
|
This comment was marked as resolved.
This comment was marked as resolved.
|
@rustbot ready |
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
|
@bors r+ rollup=never (for bisectability) |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (aa857eb): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
In rust-lang#100537, the relocation model for UEFI targets was changed from PIC (the default value) to static. There was some dicussion of this change here: rust-lang#100537 (comment) It turns out that this can cause compilation to fail as described in rust-lang#101377, so switch back to PIC. Fixes rust-lang#101377
…static-reloc, r=petrochenkov Use RelocModel::Pic for UEFI targets In rust-lang#100537, the relocation model for UEFI targets was changed from PIC (the default value) to static. There was some dicussion of this change here: rust-lang#100537 (comment) It turns out that this can cause compilation to fail as described in rust-lang#101377, so switch back to PIC. Fixes rust-lang#101377
| if self.relocation_model == RelocModel::Pic { | ||
| assert!(self.dynamic_linking || self.position_independent_executables); | ||
| } |
There was a problem hiding this comment.
This requirement is a bit odd since our default values for target options violate it -- the default relocation model is PIC, but the default for dynamic_linking and position_independent_executables is false. This is causing some trouble in #133409.
No description provided.